﻿using System;
namespace Pay.DTO.hfnative {
	/// <summary>
	/// 增加商户信息
	/// </summary>
	public class pay_add_merchant : hf_native_head {
		public pay_add_merchant() { }
		/// <summary>
		/// 交易类型
		/// </summary>
		public string tradeType { get; set; }
		/// <summary>
		/// 版本号
		/// </summary>
		public string version {
			get { return "1.3"; }
		}
		/// <summary>
		/// 商户名称,要求与营业执照上的名称一致
		/// </summary>
		public string merchantName { get; set; }
		/// <summary>
		/// 商户简称
		/// </summary>
		public string merchantShortName { get; set; }
		/// <summary>
		/// 负责人
		/// </summary>
		public string opName { get; set; }
		/// <summary>
		/// 负责人电话
		/// </summary>
		public string opPhone { get; set; }
		/// <summary>
		/// 客服电话
		/// </summary>
		public string customerTelephone { get; set; }
		/// <summary>
		/// 商户所属省
		/// </summary>
		public string proName { get; set; }
		/// <summary>
		/// 商户所属市
		/// </summary>
		public string cityName { get; set; }
		/// <summary>
		/// 商户所属县
		/// </summary>
		public string areaName { get; set; }
		/// <summary>
		/// 商户地址,需转换成16进制字符串传输
		/// </summary>
		public string address { get { return proName + cityName + areaName; } }
		/// <summary>
		/// 电话,手机或座机
		/// </summary>
		public string telephone { get; set; }
		/// <summary>
		/// 电子邮件
		/// </summary>
		public string email { get { return opPhone + "@qq.com"; } }
		/// <summary>
		/// 微信经营类目：n
		/// </summary>
		public string categoryWx { get; set; }
		/// <summary>
		/// 支付宝经营类目:n
		/// </summary>
		public string categoryZfb { get; set; }
		/// <summary>
		/// 京东经营类目:n
		/// </summary>
		public string categoryJd { get; set; }
		/// <summary>
		/// 银行类型:对应编号数据
		/// </summary>
		public string bankType { get; set; }
		/// <summary>
		/// 银行名称
		/// </summary>
		public string bankName { get; set; }
		/// <summary>
		/// 银行卡号
		/// </summary>
		public string bankCardNo { get; set; }
		/// <summary>
		/// 户名
		/// </summary>
		public string bankAccName { get; set; }
		/// <summary>
		/// 帐户类型;1：个人；2：企业
		/// </summary>
		public int accountType { get; set; }
		/// <summary>
		/// 营业执照类型（N）：NATIONAL_LEGAL：营业执照；NATIONAL_LEGAL_MERGE:多证合一；INST_RGST_CTF：事业单位法人证书
		/// </summary>
		public string businessLicenseType { get; set; }
		/// <summary>
		/// 营业执照编号：n
		/// </summary>
		public string businessLicense { get; set; }
		/// <summary>
		/// 负责人信息：LEGAL_PERSON：法人；CONTROLLER：实际控制人；AGENT：代理人；OTHER：其他
		/// </summary>
		public string legalPersonType { get; set; }
		/// <summary>
		/// 证件类型n；1-身份证；2-营业执照
		/// </summary>
		public int certificateType { get; set; }
		/// <summary>
		/// 证件号码:n
		/// </summary>
		public string certificateNo { get; set; }
		/// <summary>
		/// 说明：payTypeCode必填项：请从附件：支付渠道中取值；rateType必填项：1表示交易额比例(%)，2表示固定费率；rate必填项，费率值； rmk非必填项
		/// </summary>
		public string payTypes { get; set; }
		/// <summary>
		/// 商户经营类型:实体1、虚拟2
		/// </summary>
		public string merchantOperationType { get; set; }
	}

	public class pay_type_model {
		/// <summary>
		/// 支付渠道
		/// </summary>
		public string payTypeCode { get; set; }
		/// <summary>
		/// 费率类型1：交易额比例 2：固定费率
		/// </summary>
		public int rateType { get; set; }
		/// <summary>
		/// 费率值
		/// </summary>
		public decimal rate { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string rmk { get; set; }
	}

	/// <summary>
	/// 增加商户返回
	/// </summary>
	public class pay_add_merchant_result : hf_pay_resp {
		/// <summary>
		/// 商户号
		/// </summary>
		public string subMchId { get; set; }
	}
}
